﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Common
{
    /// <summary>
    /// 分页响应结果
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class PaginationResult<T>
    {
        /// <summary>
        /// 总数据量
        /// </summary>
        public int Total { get; set; }
        /// <summary>
        /// 当前分页的数据集合
        /// </summary>
        public IEnumerable<T> Array { get; set; }
    }
    /// <summary>
    /// 分页请求model
    /// </summary>
    public class PaginationRequest
    {
        /// <summary>
        /// 页码，从 1 开始
        /// </summary>
        public int PageIndex { get; set; } = 1;
        /// <summary>
        /// 每页数据量
        /// </summary>
        public int PageSize { get; set; } = 10;
    }
}
